/**
* memberController Module
*
* memberController
*/
angular.module('app.con.member', []).controller('MemberController', function($scope, MemberService) {
	// ngView部分高度自适应
	var window_height = window.innerHeight - document.getElementsByTagName('nav')[0].offsetHeight - document.getElementsByTagName('footer')[0].offsetHeight;
	document.getElementById('ngView').style.height = window_height + 'px';

	MemberService.list().success(function(res) {
		$scope.memberlist = res.memberlist;
	});
});